package com.fanyue.modules.wzb.entity;

import com.fanyue.core.base.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.tangzc.autotable.annotation.Index;
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Table(value = "wzb_cargo", comment = "货架表")
public class CargoEntity extends BaseEntity<CargoEntity> {
    @Index
    @ColumnDefine(comment = "保存类别", notNull = true)
    private Integer category;

    @ColumnDefine(comment = "季节", notNull = true)
    private Integer season;

    @ColumnDefine(comment = "编号")
    private String code;

    @ColumnDefine(comment = "货位位置", notNull = true)
    private String position;

    //类型，0-普通，1-专属
    @ColumnDefine(comment = "类型", defaultValue = "0")
    private Integer isPrivate;

    //type=1有效,专属被服id
    @ColumnDefine(comment = "专属被服id")
    private Long clothingId;

    @ColumnDefine(comment = "说明")
    private String note;

    @ColumnDefine(comment = "状态 0:没有 1：有", defaultValue = "0")
    private Integer status;

    @ColumnDefine(comment = "部门Id")
    private Long departmentId;

    @ColumnDefine(comment = "归还分配时填入扫脸记录，并改状态为9，防止重复分配")
    private Long faceRecordId;

    @Column(ignore = true)
    private String clothingCode;
    @Column(ignore = true)
    private String departmentName;
    @Column(ignore = true)
    private Long[] departmentIds;
}
